package com.aha.secondchapter.first;

/**
 * 队列
 * Created by wangxin on 2015/10/28.
 */
public class QQNumberByMyQueue {
    public static void main(String[] args) {
        MyQueue queue = new MyQueue();
        int[] arr = new int[102];
        int[] numArr = {6,3,1,7,5,8,9,2,4};
        System.arraycopy(numArr,0,arr,0,numArr.length);
        queue.setData(arr);
        queue.setHead(0);
        queue.setTail(numArr.length);
        while(queue.getHead() < queue.getTail()) {
            //删除
            System.out.println(queue.getData()[queue.getHead()]);
            queue.out();
            queue.in(queue.getData()[queue.getHead()]);
            queue.out();
        }
    }


}
